<!DOCTYPE html>
<html style="height: 100%" lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8">
<title>ECharts</title>
<!-- 引入jquery -->
<script type="text/javascript"
	th:src="@{/ajax/libs/jquery/3.5.0/dist/jquery.min.js}"></script>
<!-- 引入 echarts.js -->
<script type="text/javascript"
	th:src="@{/ajax/libs/echarts/5.0.1/dist/echarts.min.js}"></script>
</head>

<body style="height: 100%; margin: 0">
	<canvas id="myChart" width="400" height="400"></canvas>
	// Any of the following formats may be used var ctx =
	document.getElementById('myChart'); var ctx =
	document.getElementById('myChart').getContext('2d'); var ctx =
	$('#myChart'); var ctx = 'myChart';

	</script>
</body>
</html>